﻿using System.ComponentModel.DataAnnotations;

namespace Hotel.Model
{
    public class MemberModel
    {

        /// <summary>
        /// 会员ID
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 会员手机号
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 会员身份证号码
        /// </summary>
        public string Card { get; set; }

        /// <summary>
        /// 会员的生日
        /// </summary>
        public DateTime Birthday { get; set; }

        /// <summary>
        /// 会员的性别
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 会员帐号是否可用  状态
        /// </summary>
        public int State { get; set; } = 1;

        /// <summary>
        /// 会员的密码
        /// </summary>
        public string Pwd { get; set; }

        /// <summary>
        /// 会员的余额
        /// </summary>
        public decimal Money { get; set; }

        /// <summary>
        /// 会员积分
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 添加会员时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 会员的修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 会员等级Id  是一个外键
        /// </summary>
        public int LevelId { get; set; }

    }
}